package com.console.pages.planmgr;

import com.common.test.DefaultElement;
import com.common.test.FindElement;
import com.common.test.PageBase;
import com.common.test.UITestBase;

public class FinancePlanReleasePage extends PageBase {

	public FinancePlanReleasePage(UITestBase tb){
		super(tb);
	}
	
	@FindElement(findName = "xpath", findValue="//div[@class='panel-heading']", desc="标题")
	public DefaultElement titledv;
	@FindElement(findName = "id", findValue="stagedPeriodType", desc="产品类型选择框")
	public DefaultElement plantypeselect;
	@FindElement(findName = "xpath", findValue="//div[@ng-if='!isStagedProduct()']", desc="普通理财计划年化收益率div")
	public DefaultElement notstagediv;
	@FindElement(findName = "xpath", findValue="//div[@ng-if='isStagedProduct()']", desc="阶梯理财计划年化收益率div")
	public DefaultElement stagediv;
	@FindElement(findName = "xpath", findValue="//input[@ng-model='plan.name']", desc="名称输入框")
	public DefaultElement nameInput;
	@FindElement(findName = "name", findValue="amount", desc="限额输入框")
	public DefaultElement amountInput;
	@FindElement(findName = "name", findValue="rate", desc="年化收益率输入框")
	public DefaultElement rateInput;
	@FindElement(findName = "name", findValue="period", desc="理财周期输入框")
	public DefaultElement periodInput;
	@FindElement(findName = "xpath", findValue="//select[@ng-model='plan.lockUp']", desc="锁定期选择框")
	public DefaultElement lookupselect;
	@FindElement(findName = "xpath", findValue="//select[@ng-model='plan.maxTimeLimit']", desc="最大期限选择框")
	public DefaultElement maxtimelimitselect;
	@FindElement(findName = "id", findValue="payType", desc="普通计划还款类型选择框")
	public DefaultElement paytypeselect;
	@FindElement(findName = "id", findValue="payTypeStaged", desc="阶梯计划还款类型选择框")
	public DefaultElement paytypestagedselect;
	@FindElement(findName = "xpath", findValue="//select[@ng-model='plan.rank']", desc="安全等级选择框")
	public DefaultElement securityLevelselect;
	@FindElement(findName = "xpath", findValue="//select[@ng-model='plan.activityTypeObj']", desc="活动类型选择框")
	public DefaultElement activityTypeSelect;
	@FindElement(findName = "name", findValue="investMaxAmount", desc="单笔投资限额输入框")
	public DefaultElement investMaxAmountinput;
	@FindElement(findName = "xpath", findValue="//select[@ng-model='plan.matchTypeObj']", desc="定向匹配选择框")
	public DefaultElement matchTypeSelect;
	@FindElement(findName = "xpath", findValue="//input[@ng-model='plan.title']", desc="理财计划标签输入框")
	public DefaultElement plantitleinput;
	@FindElement(findName = "xpath", findValue="//input[@name='displayTypes' and @value='00']", desc="前台显示是单选框")
	public DefaultElement displayradio;
	@FindElement(findName = "xpath", findValue="//input[@name='displayTypes' and @value='01']", desc="前台显示否单选框")
	public DefaultElement notdisplayradio;
	@FindElement(findName = "name", findValue="summary", desc="概述输入框")
	public DefaultElement summaryInput;
	@FindElement(findName = "xpath", findValue="//button[@class='btn btn-success']", desc="发布理财计划按钮")
	public DefaultElement releaseFinancePlanButton;
	@FindElement(findName = "xpath", findValue="//p[contains(text(),'成功发布理财计划，请继续审核流程')]", desc="成功发布后出现的横条")
	public DefaultElement successp;
}
